import { PipeTransform, Pipe } from '@angular/core';

@Pipe({
    name:"rep"
})

export class ReplacePipe implements PipeTransform{
    // transform(value: any, ...args: any[]) {
    transform(value:string,arg1,arg2) {
        let reg=new RegExp(arg1,"g");
        return value.replace(reg,arg2);
    }
    
}